# This file is part of BlackArch Linux ( https://www.blackarch.org/ ).
# See COPYING for license details.

pkgname=bss
pkgver=0.8
pkgrel=8
groups=('blackarch' 'blackarch-bluetooth' 'blackarch-fuzzer' 'blackarch-scanner')
pkgdesc='Bluetooth stack smasher / fuzzer.'
url='http://www.secuobs.com/news/15022006-bss_0_8.shtml'
license=('GPL')
depends=('python' 'python2-pycurl')
arch=('x86_64' 'aarch64')
depends=('bluez-libs')
source=("http://www.secuobs.com/$pkgname-$pkgver.tar.gz")
sha512sums=('274b7184837502f1f861dede5ee3a992006054e56704bace894b1eaa44b1a7449e188014e1675e3e5126a7bef8bcaf3799043537ce3b80967f15cb239bb6e894')

prepare() {
  cd "$pkgname-$pkgver"

  sed -i -e 's|/local||g' Makefile
}

build() {
  cd "$pkgname-$pkgver"

  make
}

package() {
  cd "$pkgname-$pkgver"

  install -dm 755 "$pkgdir/usr/share/$pkgname"

  install -Dm 755 bss "$pkgdir/usr/bin/$pkgname"

  cp -a README BUGS TODO replay_packet "$pkgdir/usr/share/$pkgname"
}

